package com.hbm.eduservice.client;

import com.hbm.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import javax.servlet.http.HttpServletRequest;

@FeignClient(name = "service-ucenter",fallback =UcentermembeFeignClient.class)
@Component
public interface UcentermemberClient {

    //根据token获取用户信息
    @PostMapping("/educenter/member/getMemberInfo")
    public R getMemberInfo(HttpServletRequest request);

}
